package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.CmsUserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CmsUserAddressMapper extends BaseMapper<CmsUserAddress> {

    /**
     * 更新用户的默认收货地址为非默认
     * @param userId
     * @return
     */
    int updateForNoDefault(@Param("userId") Long userId);

}